package com.retrifot2.myretrifot2.requestServiice;

import com.retrifot2.myretrifot2.modle.HongyanquanResponse;
import com.retrifot2.myretrifot2.modle.TestRetrofitResponse;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface RequestserviceGetData {

    @GET("basil2style")
    Call<ResponseBody> getString ();

    @GET("basil2style")
    Call<TestRetrofitResponse> getData ();
//    @GET("cc/json/mobile_tel_segment.htm/{tel}")
//    Call<TestRetrofitResponse> getTeleData (@Path("tel") String tel);

    @GET("cc/json/mobile_tel_segment.htm")
    Call<TestRetrofitResponse> getTeleData (@Query("tel") String tel);
  @GET("api/0660/user/detailsInfo.do")
    Call<HongyanquanResponse> getHyqData (@Query("target_user_id") String target_user_id);//100577

    @FormUrlEncoded
    @POST("api/0660/user/detailsInfo.do")
    Call<HongyanquanResponse> getHyqDataPost (@Field("target_user_id") String target_user_id);//100577


    @FormUrlEncoded
    @POST("api/0660/user/detailsInfo.do")
    Observable<HongyanquanResponse> getHyqDataPostRx (@Field("target_user_id") String target_user_id);//100577

}
